package com.example.zuo.mysuperwidgetdemo.Application;

/**
 * Created by zuo on 2017/7/31.
 */

import android.app.Application;

import com.example.zuo.mysuperwidgetdemo.handler.CrashHandler;

/**
 * @ClassName: MyApplication
 * @Description: 获取context，在androidmanifest.xml文件中application标签<android:name="com.yisa.qiqilogin.util.MyApplication"
 * @author
 * @date 2014-4-9
 *
 */
public class MyApplication extends Application {
    private static MyApplication instance;

    public static MyApplication getInstance() {
        if (instance == null) {
            instance = new MyApplication();
        }
        return instance;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        instance = this;
       // CrashHandler.getInstance().init(getApplicationContext());
    }

}